package com.hzvictory.hotel_system.pojo.entity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
//import com.hzvictory.hotel_system.common.annotation.Excel;
import com.hzvictory.hotel_system.common.core.domain.BaseEntity;

/**
 * 菜品订单管理对象 dishorder
 *
 * @author hzvictory
 * @date 2025-07-25
 */
public class Dishorder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户ID */
    //@Excel(name = "用户ID")
    private Long userId;

    /** 关联的座位订单ID */
    //@Excel(name = "关联的座位订单ID")
    private Long seatOrderId;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 订单状态：1待支付，2已支付，3已取消，4已完成 */
    //@Excel(name = "订单状态：1待支付，2已支付，3已取消，4已完成")
    private Long status;

    /** 总价 */
    //@Excel(name = "总价")
    private BigDecimal totalPrice;

    /** 支付方式 */
    //@Excel(name = "支付方式")
    private String paymentMethod;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /** 菜品订单详情信息 */
    private List<Dishorderitem> dishorderitemList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setSeatOrderId(Long seatOrderId)
    {
        this.seatOrderId = seatOrderId;
    }

    public Long getSeatOrderId()
    {
        return seatOrderId;
    }

    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }

    public void setPaymentMethod(String paymentMethod)
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod()
    {
        return paymentMethod;
    }

    public void setPaymentTime(Date paymentTime)
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime()
    {
        return paymentTime;
    }

    public List<Dishorderitem> getDishorderitemList()
    {
        return dishorderitemList;
    }

    public void setDishorderitemList(List<Dishorderitem> dishorderitemList)
    {
        this.dishorderitemList = dishorderitemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("seatOrderId", getSeatOrderId())
                .append("orderTime", getOrderTime())
                .append("status", getStatus())
                .append("totalPrice", getTotalPrice())
                .append("paymentMethod", getPaymentMethod())
                .append("paymentTime", getPaymentTime())
                .append("remark", getRemark())
                .append("dishorderitemList", getDishorderitemList())
                .toString();
    }
}
